package com.bwie.Service;

import com.bwie.bean.Accountant;
import com.bwie.bean.User;
import com.bwie.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Override
    public void add(User user) {
        userDao.add(user);
    }

    @Override
    public void addAccountant(Accountant accountant) {
        userDao.addAccountant(accountant);
    }
}
